package cn.echo42.service;

import cn.echo42.mapper.UserMapper;
import cn.echo42.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author DaiZhiZhou
 * @file SSM-Template
 * @create 2020-07-15 22:19
 */

@Service("userService")
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public List<User> getUserList() {
        return userMapper.queryUserList();
    }


}
